﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Security;
using System.Runtime.Serialization.Formatters.Binary;
using System.Xml.Serialization;
using System.Xml.Linq;

namespace PurpleKnife.Library
{
    class ConfigReader
    {
        private string _configFilePath;

        public string ConfigFilePath
        {
            set { _configFilePath = value; }
            get { return _configFilePath; }
        }

        public void Read()
        {
            ReadConfig(_configFilePath);
        }

        public void Read(string ConfigFilePath)
        {
            _configFilePath = ConfigFilePath;
            ReadConfig(_configFilePath);
        }

        private void ReadConfig(string ConfigFilePath)
        {
            XDocument doc = XDocument.Load(_configFilePath);
        }


        

        private SecureString SecureStringFromString(string Password)
        {
            var secure = new SecureString();
            foreach (char c in Password)
            {
                secure.AppendChar(c);
            }
            return secure;
        }
        
    }
}
